gtkmenu: ignore emulated scroll events
authorOlivier Fourdan <ofourdan@redhat.com>
Tue, 3 May 2016 14:44:14 +0000 (16:44 +0200)
committerOlivier Fourdan <ofourdan@redhat.com>
Tue, 10 May 2016 13:58:02 +0000 (15:58 +0200)
commitc134d52dd789d2f8b43e15e51fa72d9586a151ec
treea591d950f257b9f5ee7fbc4042dcdea234a0306f
parente405c27eee99f9dbfd5ebf83c93dacee18e568d5
gtkmenu: ignore emulated scroll events

On X11, we get both smooth and emulated scroll events, whereas other
backends such as wayland will give smooth events only with touchpad
scrolling.

Discard emulated scroll events so that we get consistent behaviours
between backends.

Allow for both horizontal and vertical smooth events for scrolling so
that horizontal scrolling still works without emulated scroll events as
well, again for consistency between gdk backends.

https://bugzilla.gnome.org/show_bug.cgi?id=765939
gtk/gtkmenu.c